package com.ruoyi.cbs.project.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目开工申请对象 cbs_project_start_application
 * 
 * @author ruoyi
 * @date 2025-11-12
 */
public class ProjectStartApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 开工申请主键 */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /** 开工单编号 */
    @Excel(name = "开工单编号")
    private String applicationNo;

    /** 项目id */
    @Excel(name = "项目id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 承包商ID(施工单位) */
    @Excel(name = "承包商ID(施工单位)")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long contractorId;

    /** 承包商名称(施工单位) */
    @Excel(name = "承包商名称(施工单位)")
    private String contractorName;

    /** 施工开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "施工开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date constructionStart;

    /** 施工结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "施工结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date constructionEnd;

    /** 状态: 1审核中 2退回修改 3审核完成 */
    @Excel(name = "状态: 1审核中 2退回修改 3审核完成")
    private String applicationStatus;

    /** 删除标志（1代表存在 0代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setApplicationNo(String applicationNo) 
    {
        this.applicationNo = applicationNo;
    }

    public String getApplicationNo() 
    {
        return applicationNo;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }

    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }

    public void setConstructionStart(Date constructionStart) 
    {
        this.constructionStart = constructionStart;
    }

    public Date getConstructionStart() 
    {
        return constructionStart;
    }

    public void setConstructionEnd(Date constructionEnd) 
    {
        this.constructionEnd = constructionEnd;
    }

    public Date getConstructionEnd() 
    {
        return constructionEnd;
    }

    public void setApplicationStatus(String applicationStatus) 
    {
        this.applicationStatus = applicationStatus;
    }

    public String getApplicationStatus() 
    {
        return applicationStatus;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applicationNo", getApplicationNo())
            .append("projectId", getProjectId())
            .append("projectName", getProjectName())
            .append("contractorId", getContractorId())
            .append("constructionStart", getConstructionStart())
            .append("constructionEnd", getConstructionEnd())
            .append("applicationStatus", getApplicationStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
